package com.crl.ui.controls.listClass
{
	import com.crl.events.StateEvent;
	
	import flash.display.Sprite;

	/**
	 * 一个简单的IListItemRenderer实现，提供一个文本框用于显示数据内容.
	 * @author crl
	 * 
	 */	
	public class ListItemRenderer extends Sprite implements IListItemRenderer
	{
		protected var _data:*;
		protected var _chooseState:String = ChooseState.NORMAL;
		/**
		 * 构造函数.
		 * 
		 */		
		public function ListItemRenderer(){
			super();
		}
		
		/**
		 * @inheritDoc 
		 */	
		public function get chooseState():String
		{
			return _chooseState;
		}
		public function set chooseState(value:String):void
		{
			_chooseState = value;
		}
		
		
		public function awaken():void{
			
		}
		
		public function sleep():void{
			this.dispatchEvent(new StateEvent(StateEvent.SLEEP));
		}
		
		/**
		 * @inheritDoc 
		 */
		public function get data():*
		{
			return _data;
		}
		public function set data(value:*):void
		{
			_data = value;
		}
	}
}